Skip to content

Add cryptoCb hook to one-shot CMAC functions#7059

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
bigbrett:cryptocb-oneshot-cmac
Jan 16, 2024
Merged

Add cryptoCb hook to one-shot CMAC functions#7059
dgarske merged 1 commit intowolfSSL:masterfrom
bigbrett:cryptocb-oneshot-cmac

Conversation

@bigbrett
Copy link
Copy Markdown
Contributor

@bigbrett bigbrett commented Dec 12, 2023

  • Adds cryptoCb hook to one-shot CMAC functions
  • add CMAC coverage to cryptoCb tests

Testing

Added CMAC cryptoCb to myCryptoDevCb to exercise new and existing code paths

@bigbrett bigbrett force-pushed the cryptocb-oneshot-cmac branch 2 times, most recently from 3368c2f to ad35458 Compare December 12, 2023 23:09
@bigbrett bigbrett requested a review from billphipps December 12, 2023 23:15
Copy link
Copy Markdown
Contributor

@billphipps billphipps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nits and some ideas. Feel free to resolve at your discretion.

Comment thread wolfcrypt/src/cmac.c Outdated
Comment thread wolfcrypt/src/cmac.c Outdated
Comment thread wolfcrypt/src/cmac.c Outdated
Comment thread wolfcrypt/src/cmac.c Outdated
Comment thread wolfcrypt/src/cmac.c Outdated
Comment thread wolfcrypt/src/cmac.c Outdated
Comment thread wolfcrypt/test/test.c Outdated
Comment thread wolfcrypt/test/test.c Outdated
Comment thread wolfcrypt/test/test.c Outdated
Comment thread wolfcrypt/test/test.c Outdated
@bigbrett bigbrett force-pushed the cryptocb-oneshot-cmac branch from 294504d to 8fccbfc Compare December 18, 2023 19:58
@bigbrett bigbrett force-pushed the cryptocb-oneshot-cmac branch from d026b37 to 101a03c Compare January 1, 2024 15:45
@bigbrett bigbrett marked this pull request as ready for review January 1, 2024 16:57
Copy link
Copy Markdown
Contributor

@billphipps billphipps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few missed parameter checks and a couple of questions. Feel free to resolve at your discretion and I'll quickly approve.

Comment thread wolfcrypt/src/cmac.c Outdated
Comment thread wolfcrypt/src/cmac.c Outdated
Comment thread wolfcrypt/src/cmac.c Outdated
Comment thread wolfcrypt/src/cmac.c Outdated
Comment thread wolfcrypt/src/cmac.c Outdated
Comment thread wolfcrypt/src/cmac.c Outdated
Comment thread wolfcrypt/test/test.c Outdated
Comment thread wolfcrypt/test/test.c Outdated
Comment thread wolfcrypt/test/test.c Outdated
Comment thread wolfssl/wolfcrypt/cmac.h Outdated
@bigbrett bigbrett force-pushed the cryptocb-oneshot-cmac branch 2 times, most recently from f9df415 to e45431d Compare January 15, 2024 18:18
…ryptoCb tests; add context argument to CMAC generate_ex
@bigbrett bigbrett force-pushed the cryptocb-oneshot-cmac branch from e45431d to abbf9f2 Compare January 15, 2024 18:52
@bigbrett
Copy link
Copy Markdown
Contributor Author

Jenkins retest this please

@bandi13
Copy link
Copy Markdown
Contributor

bandi13 commented Jan 15, 2024

retest this please

@dgarske dgarske merged commit 7a77d64 into wolfSSL:master Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants